package com.lykj.modules.resource.config;

import lombok.AllArgsConstructor;
import com.lykj.core.redis.cache.LykjRedis;
import com.lykj.core.sms.props.SmsProperties;
import com.lykj.modules.resource.builder.sms.SmsBuilder;
import com.lykj.modules.resource.service.SmsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Sms配置类
 *
 * @author cxl
 */
@Configuration
@AllArgsConstructor
public class LykjSmsConfiguration {

	private final SmsProperties smsProperties;

	private final SmsService smsService;

	private final LykjRedis lykjRedis;

	@Bean
	public SmsBuilder smsBuilder() {
		return new SmsBuilder(smsProperties, smsService, lykjRedis);
	}

}
